//
//  PHAsset+UIImage.h
//  Meiyu
//
//  Created by apple on 16/8/26.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <Photos/Photos.h>

@interface PHAsset (UIImage)

- (void)getImageAssetImageWithImageSize:(CGSize)imageViewSize
                             completion:(void (^)(UIImage *))completion;

- (void)getImageAssetThumbnailImage:(void (^)(UIImage *))completion;

- (void)getImageAssetOriginalImage:(void (^)(UIImage *))completion;

- (void)getVideoAssetFirstFrameImage:(void (^)(UIImage *))completion;

- (void)fetchVideoWithProgressHandler:(void (^)(double))progressHandler
                    completionHandler:(void (^)(AVAsset *))completionHandler;

+ (PHAsset *)fetchPHAssetWithUrl:(NSURL *)url;

@end
